package com.seventeen.mq.proxy.server.proxy.ext;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 代理消息发送信息实体类
 *
 * @author seventeen
 */
@Data
public class ExtSendMessage {
    /**
     * 生产组名
     */
    @NotEmpty(message = "producerGroupName不可为空")
    private String producerGroupName;
    /**
     * topic
     */
    @NotEmpty(message = "topic不可为空")
    private String topic;
    /**
     * tag
     */
    @NotEmpty(message = "tag不可为空")
    private String tag;
    /**
     * keys
     */
    private String keys;
    /**
     * 延时级别
     */
    private Integer delayTimeLevel;

    /**
     * 延时时间戳
     */
    private Long deliveryTimestamp;

    @NotEmpty(message = "message不可为空")
    private String message;

}
